package cn.iocoder.yudao.module.erp.controller.admin.stock.bom.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - BOM新增/修改 Request VO")
@Data
public class BomSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7403")
    private Long id;

    @Schema(description = "bom编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "bom编号不能为空")
    private String code;

    @Schema(description = "版本")
    private String version;

    @Schema(description = "是否默认 1-是", example = "是")
    private Boolean defaultFlag;

    @Schema(description = "成品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "成品名称不能为空")
    private String prodName;

    @Schema(description = "日产量")
    private String dayProductivity;

    @Schema(description = "配件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配件不能为空")
    private String accessoryList;

    @Schema(description = "工序")
    private String processList;

    @Schema(description = "备注")
    private String remarks;

    @Schema(description = "成品编号")
    private String prodNo;

    @Schema(description = "成品id")
    private Long prodId;

}